-- GENERATED SPELL FOR [Forged Iron Dwarf] --


function spell0_27982(pUnit, Event) --@Lightning Tether,n/a--
pUnit:FullCastSpellOnTarget(50895,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27982', 5000, 1)
end

function spell1_27982(pUnit, Event) --@Lightning Tether,n/a--
pUnit:FullCastSpellOnTarget(59851,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27982', 5000, 1)
end

function Sorts_27982(pUnit, Event)
local choix_sorts_27982 = math.random(0, 1)
if choix_sorts_27982 == 0 then
pUnit:RegisterEvent('spell0_27982', 1, 1)
end
if choix_sorts_27982 == 1 then
pUnit:RegisterEvent('spell1_27982', 1, 1)
end
end

function mob27982_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27982', math.random(1500, 3000), 1)
end

function mob27982_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27982_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27982_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27982, 1, 'mob27982_Action')
RegisterUnitEvent(27982, 2, 'mob27982_Leave')
RegisterUnitEvent(27982, 3, 'mob27982_Kill')
RegisterUnitEvent(27982, 4, 'mob27982_Die')
